export const Layout = () => import('@/layout/index.vue')

export default {
  path: '/subjects',
  component: Layout,
  name: 'subjects',
  meta: {
    title: '学科管理',
    icon: 'table'
  },
  children: [
    {
      path: '',
      component: () => import('@/views/subject/index.vue'),
      name: 'subjects-list',
      meta: { title: '学科', noCache: true, icon: 'component' }
    },
    {
      path: 'directory',
      component: () => import('@/views/subject/directory.vue'),
      name: 'subjects-directory',
      meta: { title: '目录', noCache: true, icon: 'component' }
    },
    {
      path: 'tags',
      component: () => import('@/views/subject/tag.vue'),
      name: 'subjects-tags',
      meta: { title: '标签', noCache: true, icon: 'component' }
    }
  ]
}
